﻿<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <title></title>
</head>
<body>
    <script>
        //function cook() {
        //    console.log(age);
        //}
        //cook();
        //var age = 10;

        //var num = 10;
        //function f() {
        //    console.log(num);
        //    var num = 20;
        //    console.log(num);
        //}
        //f();

        var a = 10;
        f1();

        function f1() {
            var b = 9;
            console.log(a);
            console.log(b);
            var a = `122`;
        }
    </script>
</body>
</html>